package com.hr.mes.service;

import com.hr.mes.dto.Page;
import com.hr.mes.dto.Task;
import com.hr.mes.vo.TaskExecuteHisVO;
import com.hr.mes.vo.TaskVO;

import java.util.List;

public interface ProcessService {

    String deployment(String bpmnKey);

    void deleteProcessDefinition(String bpmnKey);

    String startProcessForService(String firstItem, Integer formId);

    List<Task> getTaskList();

    Page<TaskVO> getTaskPage(Integer pageNo, Integer pageSize);

    void completeTask(Integer formId, String taskId, String nextAssignee);

    List<TaskExecuteHisVO> getExecuteHistory(String taskId);

    Task rollbackTask(String targetTaskId, String employeeNumber);
}
